/*
 Navicat Premium Data Transfer

 Source Server         : localMySql
 Source Server Type    : MySQL
 Source Server Version : 80028
 Source Host           : localhost:3306
 Source Schema         : just_do_it

 Target Server Type    : MySQL
 Target Server Version : 80028
 File Encoding         : 65001

 Date: 27/10/2022 00:20:04
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for menu
-- ----------------------------
DROP TABLE IF EXISTS `menu`;
CREATE TABLE `menu` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
  `menu_name` varchar(25) COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
  `parent_id` int DEFAULT NULL COMMENT '父级菜单id',
  `deleted` int NOT NULL DEFAULT '0' COMMENT '逻辑删除标识符（0未删除 1已删除）',
  `add_by` varchar(256) COLLATE utf8mb4_general_ci NOT NULL COMMENT '添加人',
  `update_time` datetime NOT NULL COMMENT '添加时间',
  `update_by` varchar(256) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '修改人',
  `add_time` datetime DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='菜单表';

-- ----------------------------
-- Records of menu
-- ----------------------------
BEGIN;
INSERT INTO `menu` (`id`, `menu_name`, `parent_id`, `deleted`, `add_by`, `update_time`, `update_by`, `add_time`) VALUES (1, '用户管理', 0, 0, 'Tom', '2022-10-24 21:33:25', NULL, NULL);
INSERT INTO `menu` (`id`, `menu_name`, `parent_id`, `deleted`, `add_by`, `update_time`, `update_by`, `add_time`) VALUES (2, '角色管理', 1, 0, 'Tom', '2022-10-24 21:36:07', NULL, NULL);
INSERT INTO `menu` (`id`, `menu_name`, `parent_id`, `deleted`, `add_by`, `update_time`, `update_by`, `add_time`) VALUES (3, '职位管理', 1, 0, 'Tom', '2022-10-24 21:36:33', NULL, NULL);
INSERT INTO `menu` (`id`, `menu_name`, `parent_id`, `deleted`, `add_by`, `update_time`, `update_by`, `add_time`) VALUES (4, '财务管理', 0, 0, 'Tom', '2022-10-24 21:37:21', NULL, NULL);
INSERT INTO `menu` (`id`, `menu_name`, `parent_id`, `deleted`, `add_by`, `update_time`, `update_by`, `add_time`) VALUES (5, '加班申请', 4, 0, 'Tom', '2022-10-24 21:38:17', NULL, NULL);
INSERT INTO `menu` (`id`, `menu_name`, `parent_id`, `deleted`, `add_by`, `update_time`, `update_by`, `add_time`) VALUES (6, '出差申请', 4, 0, 'Tom', '2022-10-24 21:38:56', NULL, NULL);
INSERT INTO `menu` (`id`, `menu_name`, `parent_id`, `deleted`, `add_by`, `update_time`, `update_by`, `add_time`) VALUES (7, '短期出差申请', 6, 0, 'Tom', '2022-10-24 21:39:26', NULL, NULL);
INSERT INTO `menu` (`id`, `menu_name`, `parent_id`, `deleted`, `add_by`, `update_time`, `update_by`, `add_time`) VALUES (8, '长期出差申请', 6, 0, 'Tom', '2022-10-24 21:39:40', NULL, NULL);
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
